package com.study.a10Test5;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.UUID;

public class Server {
    public static void main(String[] args) throws IOException {

        ServerSocket ss=new ServerSocket(9000);


        while (true) {
            //监听客户端连接
            Socket socket=ss.accept();

            //开启一条线程
            //一个用户对应一条线程

           /* MyRunnable myRunnable=new MyRunnable(socket);
            Thread thread=new Thread(myRunnable);
            thread.start();*/
            new Thread(new MyRunnable(socket)).start();
        }

    }
}
